<extend name="public@base5"/>
<block name="main">
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li class="nav-item">
                <a class="nav-link active">系统设置</a>
            </li>
        </ul>
        <form method="put" class="js-ajax-form margin-top-20" role="form" action="admin/mall/setting">

            <div class="row mb-3">
                <label class="form-label">默认昵称</label>
                <div class="row">
                    <div class="col-md-4">
                        <input type="text" class="form-control" name="default_male_nick"
                               title="默认昵称" placeholder="用户"
                               value="{$default_male_nick|default='用户'}">
                    </div>
                </div>
            </div>
            <div class="row mb-3">
                <label class="form-label">默认头像</label>
                <div class="col-md-8 col-sm-10">
                    <input type="hidden" name="default_male_avatar" id="item_icon"
                           value="{$default_male_avatar|default=''}">
                    <a href="javascript:uploadOneImage('图片上传','#item_icon');">
                        <if condition="empty($default_male_avatar)">
                            <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                 id="item_icon-preview"
                                 width="135" style="cursor: pointer"/>
                            <else/>
                            <img src="{:cmf_get_image_preview_url($default_male_avatar)}"
                                 id="item_icon-preview"
                                 width="135" style="cursor: pointer"/>
                        </if>
                    </a>
                </div>
            </div>
            <div class="row mb-3">
                <label class="form-label">联系方式</label>
                <div class="col-md-8 col-sm-10">
                    <input type="hidden" name="connect_img" id="connect_img"
                           value="{$connect_img|default=''}">
                    <a href="javascript:uploadOneImage('图片上传','#connect_img');">
                        <if condition="empty($connect_img)">
                            <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                 id="connect_img-preview"
                                 width="135" style="cursor: pointer"/>
                            <else/>
                            <img src="{:cmf_get_image_preview_url($connect_img)}"
                                 id="connect_img-preview"
                                 width="135" style="cursor: pointer"/>
                        </if>
                    </a>
                </div>
            </div>
            <div class="row mb-3">
                <div class="col-sm-10">
                    <button type="submit" class="btn btn-primary js-ajax-submit">
                        <i class="fa fa-save fa-fw"></i> {:lang('SAVE')}
                    </button>
                </div>
            </div>
        </form>
    </div>
</block>
